package com.luck.emp.whorder.logic;

import java.util.List;

import com.luck.emp.entity.EmpTWhOrderD;
import com.luck.emp.entity.EmpTWhOrderM;
import com.luck.emp.whorder.qry.WhorderQry;
import com.luck.pf.common.entity.UserBean;
import com.luck.pf.framework.logic.IBaseLogic;

/**
 * 说明
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public interface IWhorderLogic extends IBaseLogic{
	/**
	 * 保存
	 **/
	public String saveWhorder(UserBean userBean, EmpTWhOrderM entity, String[] productCodes, String[] prices, String[] qtys) throws Exception;
	/**
	 * 删除
	 */
	public String deleteWhorder(UserBean userBean, EmpTWhOrderM entity) throws Exception;
	/**
	 * 查找分页信息
	 */
	public  <T> T findWhorderPage(WhorderQry qry, Class<T> cls);
	//根据出入库单，得到明细记录
	public List<EmpTWhOrderD> findWhOrderD(String orderCode);
	//审核出入库订单
	public void saveAudit(UserBean userBean, EmpTWhOrderM entity, WhorderQry qry) throws Exception;
}